package top.wardyan.wtask.tapd.vo;
import java.sql.Timestamp;

import cn.hutool.core.util.NumberUtil;



public class Task {
	private Long id;
    private String label;
    private String name;
    private String status;
    private Long iterationId;
    private String priority;
    private String owner;
    private Float effortCompleted;
    private Timestamp begin;
    private String effort;
    private Long storyId;
    private Timestamp created;
    private String workspaceId;
    private Timestamp due;
    private String childrenId;
    private String progress;
    private String shortId;
    private String workspaceName;
    private String iterationName;
    private String releaseName;
    private String storyName;
    private IterationInfo iterationInfo;
    private String titleUrl;
    private String statusClass;
    private String statusAlias;
    private String icon;
    private String enableMultiWorkflow;
    private String measurementEditable;
    private String custom_field_开发工时;
    private Timestamp completed;
    private Timestamp modified;
    private String custom_field_搞开发的人;
    
    
    
	public String getCustom_field_搞开发的人() {
		return custom_field_搞开发的人;
	}
	public Task setCustom_field_搞开发的人(String custom_field_搞开发的人) {
		this.custom_field_搞开发的人 = custom_field_搞开发的人;
		return this;
	}
	public Timestamp getCompleted() {
		return completed;
	}
	public Task setCompleted(Timestamp completed) {
		this.completed = completed;
		return this;
	}
	public Timestamp getModified() {
		return modified;
	}
	public Task setModified(Timestamp modified) {
		this.modified = modified;
		return this;
	}
	public Long getId() {
		return id;
	}
	public Task setId(Long id) {
		this.id = id;
		return this;
	}
	public String getLabel() {
		return label;
	}
	public Task setLabel(String label) {
		this.label = label;
		return this;
	}
	public String getName() {
		return name;
	}
	public Task setName(String name) {
		this.name = name;
		return this;
	}
	public String getStatus() {
		return status;
	}
	public Task setStatus(String status) {
		this.status = status;
		return this;
	}
	public Long getIterationId() {
		return iterationId;
	}
	public Task setIterationId(Long iterationId) {
		this.iterationId = iterationId;
		return this;
	}
	public String getPriority() {
		return priority;
	}
	public Task setPriority(String priority) {
		this.priority = priority;
		return this;
	}
	public String getOwner() {
		return owner;
	}
	public Task setOwner(String owner) {
		this.owner = owner;
		return this;
	}
	public Float getEffortCompleted() {
		return effortCompleted;
	}
	public Task setEffortCompleted(Float effortCompleted) {
		this.effortCompleted = effortCompleted;
		return this;
	}
	public Timestamp getBegin() {
		return begin;
	}
	public Task setBegin(Timestamp begin) {
		this.begin = begin;
		return this;
	}
	public String getEffort() {
		return effort;
	}
	public Task setEffort(String effort) {
		this.effort = effort;
		return this;
	}
	public Long getStoryId() {
		return storyId;
	}
	public Task setStoryId(Long storyId) {
		this.storyId = storyId;
		return this;
	}
	public Timestamp getCreated() {
		return created;
	}
	public Task setCreated(Timestamp created) {
		this.created = created;
		return this;
	}
	public String getWorkspaceId() {
		return workspaceId;
	}
	public Task setWorkspaceId(String workspaceId) {
		this.workspaceId = workspaceId;
		return this;
	}
	public Timestamp getDue() {
		return due;
	}
	public Task setDue(Timestamp due) {
		this.due = due;
		return this;
	}
	public String getChildrenId() {
		return childrenId;
	}
	public Task setChildrenId(String childrenId) {
		this.childrenId = childrenId;
		return this;
	}
	public String getProgress() {
		return progress;
	}
	public Task setProgress(String progress) {
		this.progress = progress;
		return this;
	}
	public String getShortId() {
		return shortId;
	}
	public Task setShortId(String shortId) {
		this.shortId = shortId;
		return this;
	}
	public String getWorkspaceName() {
		return workspaceName;
	}
	public Task setWorkspaceName(String workspaceName) {
		this.workspaceName = workspaceName;
		return this;
	}
	public String getIterationName() {
		return iterationName;
	}
	public Task setIterationName(String iterationName) {
		this.iterationName = iterationName;
		return this;
	}
	public String getReleaseName() {
		return releaseName;
	}
	public Task setReleaseName(String releaseName) {
		this.releaseName = releaseName;
		return this;
	}
	public String getStoryName() {
		return storyName;
	}
	public Task setStoryName(String storyName) {
		this.storyName = storyName;
		return this;
	}
	public IterationInfo getIterationInfo() {
		return iterationInfo;
	}
	public Task setIterationInfo(IterationInfo iterationInfo) {
		this.iterationInfo = iterationInfo;
		return this;
	}
	public String getTitleUrl() {
		return titleUrl;
	}
	public Task setTitleUrl(String titleUrl) {
		this.titleUrl = titleUrl;
		return this;
	}
	public String getStatusClass() {
		return statusClass;
	}
	public Task setStatusClass(String statusClass) {
		this.statusClass = statusClass;
		return this;
	}
	public String getStatusAlias() {
		return statusAlias;
	}
	public Task setStatusAlias(String statusAlias) {
		this.statusAlias = statusAlias;
		return this;
	}
	public String getIcon() {
		return icon;
	}
	public Task setIcon(String icon) {
		this.icon = icon;
		return this;
	}
	public String getEnableMultiWorkflow() {
		return enableMultiWorkflow;
	}
	public Task setEnableMultiWorkflow(String enableMultiWorkflow) {
		this.enableMultiWorkflow = enableMultiWorkflow;
		return this;
	}
	public String getMeasurementEditable() {
		return measurementEditable;
	}
	public Task setMeasurementEditable(String measurementEditable) {
		this.measurementEditable = measurementEditable;
		return this;
	}
	public Float getCustom_field_开发工时() {
//		if(custom_field_开发工时 != null && custom_field_开发工时.contains("h"))
//		if (NumberUtil.isDouble(custom_field_开发工时)){
//			// return NumberUtil.toDouble(custom_field_开发工时);
//			return Float.valueOf(custom_field_开发工时);
//		}
//		return 0.0F;
		// return NumberUtil.to
		return NumberUtil.parseFloat(custom_field_开发工时);
		// return 0.0F;
	}
	public Task setCustom_field_开发工时(String custom_field_开发工时) {
		this.custom_field_开发工时 = custom_field_开发工时;
		return this;
	}
    
    

}